﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CrossClick : MonoBehaviour {

    public GameObject Cross_Base;
    public GameObject Cross_Hover;
    public GameObject Config_Base1;

    // Use this for initialization
    void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

    void OnMouseEnter()
    {
        Cross_Hover.transform.position = new Vector3(3.784F, 2.528F, 0);
    }

    void OnMouseExit()
    {
        Cross_Base.transform.position = new Vector3(3.784F, 2.528F, 0);
        Cross_Hover.transform.position = new Vector3(3.784F, 2.528F, 1);
    }
    
    void OnMouseUp()
    {
        Config_Base1.transform.position = new Vector3(2.79F, 0.83F, -2);
        if (name == "Cross_Hover")
            Application.Quit();
    }
}
